<script setup lang="ts">
// script here
import { DataEntity } from '@/utils/entity'

async function test() {
  console.log('test')
}

class Demo extends DataEntity {
  foo: string
  constructor(props: Demo) {
    super(props)
    this.foo = props.foo
  }
}

const demo = new Demo({
  id: '111',
  createBy: { id: 'aa', name: 'aaa', username: 'aaa' },
  updateBy: { id: 'aa', name: 'aaa', username: 'aaa' },
  createDate: 'xxx',
  updateDate: 'xxx',
  foo: 'foo',
  status: 'Y'
})
console.log(demo)
</script>

<template>
  <div class="play">
    <div>play here</div>
    <el-button @click="test">test</el-button>
  </div>
</template>

<style lang="scss" scoped>
// style here
</style>
